﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true" CodeBehind="consuni.aspx.cs" Inherits="Kcadastro.consuni.consuni" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <link href="/css/grid1.css" rel="stylesheet" type="text/css" />
    <link href="/css/os.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var GB_ROOT_DIR = "<%= site %>/greybox/";
    </script>
    <script type="text/javascript" src="/greybox/AJS.js"></script>
    <script type="text/javascript" src="/greybox/AJS_fx.js"></script>
    <script type="text/javascript" src="/greybox/gb_scripts.js"></script>
    <link href="/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div class="formulario">
    <br />
    <div align="center">
        <asp:Panel ID="Panel1" Width="700" runat="server">
        <h1>Consulta</h1>
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
                 <label>Tipo:</label> <asp:DropDownList ID="dd_tpConsulta" AutoPostBack="true" 
                     runat="server" onselectedindexchanged="dd_tpConsulta_SelectedIndexChanged">
                    </asp:DropDownList><br />
                <div class="inputdinamico">
                 <asp:Label ID="lb_param1" runat="server" Text="Parametro 1"></asp:Label> 
                 <asp:TextBox ID="tb_param1" Columns="30" runat="server"></asp:TextBox>
                 </div>
                 <div class="inputdinamico">
                 <asp:Label ID="lb_param2" runat="server" Text="Parametro 1"></asp:Label> 
                 <asp:TextBox ID="tb_param2" Columns="30" runat="server"></asp:TextBox>
                 </div>
                 <div class="inputdinamico">
                 <asp:Label ID="lb_param3" runat="server" Text="Parametro 1"></asp:Label> 
                 <asp:TextBox ID="tb_param3" Columns="30" runat="server"></asp:TextBox>
                 </div>
                 <div class="inputdinamico">
                 <asp:Label ID="lb_param4" runat="server" Text="Parametro 1"></asp:Label> 
                 <asp:TextBox ID="tb_param4" Columns="30" runat="server"></asp:TextBox>
                 </div>
                 <div class="inputdinamico">
                 <asp:Label ID="lb_param5" runat="server" Text="Parametro 1"></asp:Label> 
                 <asp:TextBox ID="tb_param5" Columns="30" runat="server"></asp:TextBox>
                 </div>
                 
             </ContentTemplate>
             <Triggers>
                <asp:AsyncPostBackTrigger ControlID="dd_tpConsulta" EventName="SelectedIndexChanged" />
             </Triggers>
         </asp:UpdatePanel>
            <asp:Button ID="bt_consultar" runat="server" CssClass="botaoformulario" Text="Consultar" onclick="bt_consultar_Click" />
            <br class="clear" />
            <%--<table class="tabela" width="500">
                <tr>
                    <th colspan="3">Resultado da Consulta</th>
                </tr>
                <tr>
                    <th>DANFE</th>
                    <th>Receita Federal</th>
                    <th>Sintegra</th>
                </tr>
                <tr>
                    <td><asp:Literal ID="lt_sitNFE" runat="server"></asp:Literal></td>
                    <td><asp:Literal ID="lt_sitRF" runat="server"></asp:Literal></td>
                    <td><asp:Literal ID="lt_sitSI" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td colspan="3">
                    <div style="font-size:13px"><asp:Literal ID="lt_msg" runat="server"></asp:Literal></div><br />
                    <div style="font-size:13px"><asp:Literal ID="lt_nfe" runat="server"></asp:Literal></div>
                    </td>
                </tr>
            </table>--%>
            <div style="font-size:13px"><asp:Literal ID="lt_msg" runat="server"></asp:Literal></div>
            <div class="dados"><asp:Image ID="img_farol" runat="server" style="vertical-align:middle" /><asp:Literal ID="lt_msgfarol" runat="server"></asp:Literal></div>
        </asp:Panel>
         <asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="panel1" BorderColor="Black" Radius="10" Corners="all">    </asp:RoundedCornersExtender>
        <br />
        
        <div id="painelresultado">
            <div align="center">
                <asp:HyperLink ID="hl_xls" Target="_blank" runat="server">Baixar Excel</asp:HyperLink>
            </div>
            <table class="mGrid">
                <tr>
                    <td colspan="2" align="center"><b>RECEITA FEDERAL</b></td>
                </tr>
                <tr>
                    <td align="right" width="15%">CNPJ                : </td><td align="left"><asp:Literal ID="ltr_RFCNPJ" runat="server"></asp:Literal></td> 
                </tr>
                <tr>               
<td align="right">DATA ABERTURA       :  </td><td align="left"><asp:Literal ID="ltr_RFDATAABERTURA" runat="server"></asp:Literal></td>        
</tr>
                <tr>
<td align="right">RAZAO SOCIAL        :  </td><td align="left"><asp:Literal ID="ltr_RFRAZAOSOCIAL" runat="server"></asp:Literal></td>         
</tr>
                <tr>
<td align="right">NOME FANTASIA      :   </td><td align="left"><asp:Literal ID="ltr_RFNOMEFANTASIA" runat="server"></asp:Literal></td>        
</tr>
                <tr>
<td align="right">CODIGO AE          :   </td><td align="left"><asp:Literal ID="ltr_RFCODIGOAE" runat="server"></asp:Literal></td>            
</tr>
                <tr>
<td align="right">DESCRICAO AE        :  </td><td align="left"><asp:Literal ID="ltr_RFDESCRICAOAE" runat="server"></asp:Literal></td>         
</tr>
                <tr>
<td align="right">CODIGO NJ          :   </td><td align="left"><asp:Literal ID="ltr_RFCODIGONJ" runat="server"></asp:Literal></td>            
</tr>
                <tr>
<td align="right">DESCRICAO NJ       :   </td><td align="left"><asp:Literal ID="ltr_RFDESCRICAONJ" runat="server"></asp:Literal></td>         
</tr>
                <tr>
<td align="right">LOGRADOURO         :  </td><td align="left"><asp:Literal ID="ltr_RFLOGRADOURO" runat="server"></asp:Literal></td>          
</tr>
                <tr>
<td align="right">NUMERO            :   </td><td align="left"><asp:Literal ID="ltr_RFNUMERO" runat="server"></asp:Literal></td>              
</tr>
                <tr>
<td align="right">COMPLEMENTO        :  </td><td align="left"><asp:Literal ID="ltr_RFCOMPLEMENTO" runat="server"></asp:Literal></td>         
</tr>
                <tr>
<td align="right">CEP               :   </td><td align="left"><asp:Literal ID="ltr_RFCEP" runat="server"></asp:Literal></td>                 
</tr>
                <tr>
<td align="right">BAIRRO            :   </td><td align="left"><asp:Literal ID="ltr_RFBAIRRO" runat="server"></asp:Literal></td>              
</tr>
                <tr>
<td align="right">CIDADE             :  </td><td align="left"><asp:Literal ID="ltr_RFCIDADE" runat="server"></asp:Literal></td>              
</tr>
                <tr>
<td align="right">ESTADO             :  </td><td align="left"><asp:Literal ID="ltr_RFESTADO" runat="server"></asp:Literal></td>              
</tr>
                <tr>
<td align="right">SITUACAO          :   </td><td align="left"><asp:Literal ID="ltr_RFSITUACAO" runat="server"></asp:Literal></td>            
</tr>
                <tr>
<td align="right">DATA SITUACAO       :  </td><td align="left"><asp:Literal ID="ltr_RFDATASITUACAO" runat="server"></asp:Literal></td>        
</tr>
                <tr>
<td align="right">SITUACAO ESPECIAL   :  </td><td align="left"><asp:Literal ID="ltr_RFSITUACAOESPECIAL" runat="server"></asp:Literal></td>    
</tr>
                <tr>
<td align="right">DATA SITUACAO ESPECIAL : </td><td align="left"><asp:Literal ID="ltr_RFDATASITUACAOESPECIAL" runat="server"></asp:Literal></td>
</tr>
                <tr>
<td align="right">DATA CONSULTA       :  </td><td align="left"><asp:Literal ID="ltr_RFDATACONSULTA" runat="server"></asp:Literal></td>        
</tr>
                <tr>
<td align="right">HORA CONSULTA       :  </td><td align="left"><asp:Literal ID="ltr_RFHORACONSULTA" runat="server"></asp:Literal></td>        
</tr>
                <tr>
<td align="right">TIPO EMPRESA        :  </td><td align="left"><asp:Literal ID="ltr_RFTIPOEMPRESA" runat="server"></asp:Literal></td>         
</tr>
                <tr>
<td align="right">MOTIVO SITUACAO     :  </td><td align="left"><asp:Literal ID="ltr_RFMOTIVOSITUACAO" runat="server"></asp:Literal></td>    
                </tr>
                <tr>
                    <td colspan="2" align="center"><b>SINTEGRA</b></td>                
                </tr>
                <tr><td align="right">CNPJ              : </td><td align="left"><asp:Literal ID="ltr_SICNPJ" runat="server"></asp:Literal></td></tr>
<tr><td align="right">IE                : </td><td align="left"><asp:Literal ID="ltr_SIIE"                 runat="server"></asp:Literal></td></tr>    
<tr><td align="right">RAZAOSOCIAL       : </td><td align="left"><asp:Literal ID="ltr_SIRAZAOSOCIAL"        runat="server"></asp:Literal></td></tr>    
<tr><td align="right">NOMEFANTASIA      : </td><td align="left"><asp:Literal ID="ltr_SINOMEFANTASIA"       runat="server"></asp:Literal></td></tr>    
<tr><td align="right">LOGRADOURO        : </td><td align="left"><asp:Literal ID="ltr_SILOGRADOURO"         runat="server"></asp:Literal></td></tr>    
<tr><td align="right">NUMERO            : </td><td align="left"><asp:Literal ID="ltr_SINUMERO"             runat="server"></asp:Literal></td></tr>    
<tr><td align="right">COMPLEMENTO       : </td><td align="left"><asp:Literal ID="ltr_SICOMPLEMENTO"        runat="server"></asp:Literal></td></tr>    
<tr><td align="right">BAIRRO            : </td><td align="left"><asp:Literal ID="ltr_SIBAIRRO"             runat="server"></asp:Literal></td></tr>    
<tr><td align="right">CIDADE            : </td><td align="left"><asp:Literal ID="ltr_SICIDADE"             runat="server"></asp:Literal></td></tr>    
<tr><td align="right">ESTADO            : </td><td align="left"><asp:Literal ID="ltr_SIESTADO"             runat="server"></asp:Literal></td></tr>    
<tr><td align="right">CEP               : </td><td align="left"><asp:Literal ID="ltr_SICEP"                runat="server"></asp:Literal></td></tr>    
<tr><td align="right">EMAIL             : </td><td align="left"><asp:Literal ID="ltr_SIEMAIL"              runat="server"></asp:Literal></td></tr>    
<tr><td align="right">SITUACAO          : </td><td align="left"><asp:Literal ID="ltr_SISITUACAO"           runat="server"></asp:Literal></td></tr>    
<tr><td align="right">TAINCLUSAO        : </td><td align="left"><asp:Literal ID="ltr_SITAINCLUSAO"         runat="server"></asp:Literal></td></tr>    
<tr><td align="right">TABAIXA           : </td><td align="left"><asp:Literal ID="ltr_SITABAIXA"            runat="server"></asp:Literal></td></tr>    
<tr><td align="right">DATACONSULTA      : </td><td align="left"><asp:Literal ID="ltr_SIDATACONSULTA"       runat="server"></asp:Literal></td></tr>    
<tr><td align="right">NUMEROCONSULTA    : </td><td align="left"><asp:Literal ID="ltr_SINUMEROCONSULTA"     runat="server"></asp:Literal></td></tr>    
<tr><td align="right">REGIMEAPURACAO    : </td><td align="left"><asp:Literal ID="ltr_SIREGIMEAPURACAO"     runat="server"></asp:Literal></td></tr>    
<tr><td align="right">MOTIVOBAIXA       : </td><td align="left"><asp:Literal ID="ltr_SIMOTIVOBAIXA"        runat="server"></asp:Literal></td></tr>    
<tr><td align="right">REGULARIDADEFISCAL: </td><td align="left"><asp:Literal ID="ltr_SIREGULARIDADEFISCAL" runat="server"></asp:Literal></td></tr>    
                 <tr>
                    <td colspan="2" align="center"><b>SIMPLES NACIONAL</b></td>                
                </tr>
                <tr><td align="right">CNPJ             : </td><td align="left"><asp:Literal ID="ltr_CNPJ"             runat="server"></asp:Literal></td></tr>
<tr><td align="right">RAZAOSOCIAL      : </td><td align="left"><asp:Literal ID="ltr_RAZAOSOCIAL"      runat="server"></asp:Literal></td></tr>
<tr><td align="right">SITUACAO         : </td><td align="left"><asp:Literal ID="ltr_SITUACAO"         runat="server"></asp:Literal></td></tr>
<tr><td align="right">DATASITUACAO     : </td><td align="left"><asp:Literal ID="ltr_DATASITUACAO"     runat="server"></asp:Literal></td></tr>
<tr><td align="right">SITUACAOSIMEI    : </td><td align="left"><asp:Literal ID="ltr_SITUACAOSIMEI"    runat="server"></asp:Literal></td></tr>
<tr><td align="right">SITUACAOANTERIOR : </td><td align="left"><asp:Literal ID="ltr_SITUACAOANTERIOR" runat="server"></asp:Literal></td></tr>
                <tr>
                    <td colspan="2" align="center"><b>CORREIOS e IBGE</b></td>                
                </tr>
                <tr><td align="right">COD. IBGE : </td><td align="left"><asp:Literal ID="ltr_CODIBGE" runat="server"></asp:Literal></td></tr>
            
                <tr><td align="right">RUA : </td><td align="left"><asp:Literal ID="ltr_CORUA" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">COMPLEMENTO : </td><td align="left"><asp:Literal ID="ltr_COCOMPLEMENTO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">BAIRRO : </td><td align="left"><asp:Literal ID="ltr_COBAIRRO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">CIDADE : </td><td align="left"><asp:Literal ID="ltr_COCIDADE" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">ESTADO : </td><td align="left"><asp:Literal ID="ltr_COESTADO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">CEPNUM : </td><td align="left"><asp:Literal ID="ltr_COCEPNUM" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">ERRO : </td><td align="left"><asp:Literal ID="ltr_COERRO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">COD. LOGRADOURO : </td><td align="left"><asp:Literal ID="ltr_COCODLOGRADOURO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">COD. BAIRRO : </td><td align="left"><asp:Literal ID="ltr_COCODBAIRRO" runat="server"></asp:Literal></td></tr>
                <tr><td align="right">COD. LOCALIDADE : </td><td align="left"><asp:Literal ID="ltr_COCODLOCALIDADE" runat="server"></asp:Literal></td></tr>
            
            </table>
            <%--<iframe id="frmres" scrolling="auto" width="90%" height="350" src=""  runat="server"></iframe>--%>
        </div>
        



</asp:Content>
